import request from '@/config/axios'

export const getList = async (params) => {
  return await request.get({
    url: '/bidCoalManage/getPage',
    params
  })
}

export const coalManageCreate = async (data) => {
  return await request.post({
    url: '/bidCoalManage/create',
    data
  })
}

export const coalManageUpdate = async (data) => {
  return await request.put({
    url: '/bidCoalManage/update',
    data
  })
}

export const getCoalManageById = async (params) => {
  return await request.get({
    url: '/bidCoalManage/getById',
    params
  })
}

export const coalManageDelete = async (id) => {
  return await request.delete({
    url: `/bidCoalManage/delete?id=${id}`
  })
}
